package com.me.modules.sys.service.impl;

import com.me.modules.sys.dao.GroupRoleDao;
import com.me.modules.sys.service.GroupRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date : 2018/12/18 9:53
 * @Author : zhenglei
 * @Desc : 组_角色实现类
 */
@Service("groupRoleService")
public class GroupRoleServiceImpl implements GroupRoleService {

    @Autowired
    private GroupRoleDao groupRoleDao;


    @Override
    public List<Integer> queryRoleIdListByGroupId(Integer groupId) {
        return groupRoleDao.queryRoleIdListByGroupId(groupId);
    }

    @Override
    public void save(Map<String, Object> map){
        groupRoleDao.save(map);
    }

    @Override
    public void delete(Integer groupId){
        groupRoleDao.delete(groupId);
    }

    @Override
    public void deleteBatch(String[] ids){
        groupRoleDao.deleteBatch(ids);
    }
}
